enum Flag { success = 1, error = 2 };
let s: Flag = Flag.error;
alert(s);
